/**
 * Created by 张强 on 2018/1/8.
 */
import {
    PECC_DETAIL,
    ORDER_PAY_MOUNT
} from "../actions/actionsTypes";

export default function payMentReducer(state = {}, action) {
    switch (action.type) {
        case PECC_DETAIL:
            return Object.assign({}, state, {peccDetail: action.data});
        case ORDER_PAY_MOUNT:
            return Object.assign({}, state, {payMent: action.data.orderPayAmount});
        default:
            return state;
    }
}
